﻿using System;
using System.Collections.ObjectModel;
using FlipViewSample.Model;

namespace FlipViewSample.ViewModels
{
    public class GalleryViewModel
    {
        /// <summary>
        ///     Initializes a new instance of the <see cref="T:System.Object" /> class.
        /// </summary>
        public GalleryViewModel()
        {
            LoadData();
        }

        public ObservableCollection<GalleryImageModel> Images { get; set; }

        private void LoadData()
        {
            Images = new ObservableCollection<GalleryImageModel>(new[]
            {
                new GalleryImageModel {Title = "Beach", ImageUri = new Uri("ms-appx:///Assets/Beach.jpg")},
                new GalleryImageModel {Title = "Coast", ImageUri = new Uri("ms-appx:///Assets/Coast.jpg")},
                new GalleryImageModel {Title = "Fishes", ImageUri = new Uri("ms-appx:///Assets/Fishes.jpg")},
                new GalleryImageModel
                {
                    Title = "Mountain Lake",
                    ImageUri = new Uri("ms-appx:///Assets/MountainLake.jpg")
                },
                new GalleryImageModel {Title = "Whale", ImageUri = new Uri("ms-appx:///Assets/Whale.jpg")}
            });
        }
    }
}